<div id="divMain" style="background-color:#CCCCCC">
  <table cellpadding="0" cellspacing="0" border="0" id="dataTable">
    <thead>
      <tr>
        <th width="80px">STT</th>
        <th width="120px">Loại tin</th>
        <th>Tên</th>
        <th width="100px">Thứ tự</th>
        <th width="100px">Ẩn hiện</th>
        <th width="100px"></th>
        <th width="100px"><a href="<?=base_url('untitled/tin/them.html')?>">Thêm mới</a></th>
      </tr>
    </thead>
    <tbody>
      <?php foreach($result as $rows){ ?>
      <tr>
        <td><?=$rows->id?></td>
        <td><?=$rows->tenLT?></td>
        <td><?=$rows->ten?></td>
        <td><?=$rows->thutu?></td>
        <td><?=($rows->anhien==1)?"Hiện":"Ẩn"?></td>
        <td><a href="<?=base_url('untitled/tin/sua.html?id='.$rows->id)?>">Sửa</a></td>
        <td><a href="<?=base_url('untitled/tin/xoa.html?id='.$rows->id)?>">Xóa</a></td>
      </tr>
      <?php } ?>
    </tbody>
  </table>
</div>